package com.qdlc.p2p.dal.model;

import org.springframework.beans.BeanUtils;

import com.qdlc.p2p.dal.dto.ScoreType;

/**
 * Created by liaoxiangkai on 2015/12/7.
 */
public class ScoreTypeModel extends ScoreType {
    private int page;
    private int rows;
    private String searchName;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public String getSearchName() {
        return searchName;
    }

    public void setSearchName(String searchName) {
        this.searchName = searchName;
    }

    public static ScoreTypeModel instance(ScoreType scoreType) {
        ScoreTypeModel scoreTypeModel = new ScoreTypeModel();
        BeanUtils.copyProperties(scoreType, scoreTypeModel);
        return scoreTypeModel;
    }

    public static ScoreType prototype(ScoreTypeModel model) {
        ScoreType scoreType = new ScoreType();
        BeanUtils.copyProperties(model, scoreType);
        return scoreType;
    }


}
